wayland: Store per-touch touch_down serial
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 13 Aug 2014 19:05:12 +0000 (21:05 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 26 Aug 2014 11:32:16 +0000 (13:32 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=734374

gdk/wayland/gdkdevice-wayland.c

index 3780396e037a158ffbeb80824952121bacac2935..9dda3d7bb2901b7c0c6850c24b4df757b6fa2197 100644 (file)
@@ -47,6 +47,7 @@ struct _GdkWaylandTouchData
   gdouble x;
   gdouble y;
   GdkWindow *window;
+  uint32_t touch_down_serial;
   guint initial_touch : 1;
 };
 
@@ -1389,6 +1390,7 @@ touch_handle_down (void              *data,
   touch = gdk_wayland_device_add_touch (device, id, wl_surface);
   touch->x = wl_fixed_to_double (x);
   touch->y = wl_fixed_to_double (y);
+  touch->touch_down_serial = serial;
 
   event = _create_touch_event (device, touch, GDK_TOUCH_BEGIN, time);